FROM python:3.6

WORKDIR /
COPY ./requirements.txt /
RUN pip3.6 install -i https://pypi.douban.com/simple --no-cache-dir -r requirements.txt

COPY ./dist/iron-back-1.0/app /app
RUN mkdir /var/log/ironman

EXPOSE 5000/tcp

CMD cd /app && flask run --host=0.0.0.0 --port=5000 --with-threads --no-debugger --no-reload
